package com.project.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.server.entity.HealthRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface HealthRecordMapper extends BaseMapper<HealthRecord> {


    @Select("SELECT * FROM health_record WHERE patient_id = #{patientId} ORDER BY create_time DESC LIMIT #{size}")
    List<HealthRecord> selectRecentRecords(Long patientId, int i);





}
